{% extends 'desk/desk_base.html' %}

{% block title %}
    新增桌子
{% endblock %}

{% block content %}
    <ol class="breadcrumb">
      <li><a href="#">首页</a></li>
      <li><a href="#">桌子管理</a></li>
      <li class="active">新增桌子</li>
    </ol>
    <form class="form-horizontal" action="{{ url_for("desk.add_desk") }}" method="POST">
          <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">桌子名</label>
            <div class="col-sm-10">
              <input type="text" name="desk_name" class="form-control" id="inputEmail3" placeholder="桌子名">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">可容纳人数</label>
            <div class="col-sm-10">
              <input type="number" name="men" class="form-control" id="inputPassword3" placeholder="可容纳人数">
            </div>
          </div>

          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-primary">添加桌子</button>
            </div>
          </div>
    </form>
    <ul>
        {% for error in get_flashed_messages() %}
            <li>{{ error }}</li>
        {% endfor %}
    </ul>
{% endblock %}